package aufgabe1;

public class Vertice {

	private int _pos;
	private int grad;
	private boolean visited;

	public Vertice(int pos) {
		_pos = pos;
	}

	public boolean isVisited() {
		return visited;
	}

	public void setVisited(boolean visited) {
		this.visited = visited;
	}

	public int getGrad() {
		return grad;
	}

	public void setGrad(int grad) {
		this.grad = grad;
	}

	public int getPos() {
		return _pos;
	}

	@Override
	public boolean equals(Object obj) {
		Vertice temp = (Vertice) obj;
		
		if (this.getPos() == temp.getPos()) {
			return true;
		} else
			return false;
	}

	@Override
	public String toString() {
		return "Vertice [_pos=" + _pos + "]";
	}

}
